package com.anbao.util;

public final class MessageCommonData {

	   public static final class usrType {

		   /**
		    * 报警主机
		    */
		   public static final int ALARM_DEVICE = 0;
		   /**
		    * 移动管理员
		    */
		   public static final int MOBILE_USR_MANAGER = 1;
		   /**
		    * 移动用户
		    */
		   public static final int MOBILE_USR = 2;
		   /**
		    * PC用户
		    */
		   public static final int PC_USR = 3;
	    }
	
	   /**
	    * 请求消息头部命令
	    * @author tiansl
	    *
	    */
	   public static final class headCmd_req{
		   
		   
		   /**
		    * 8001	C->S	登录请求
		    */
		   public static final int LOGIN_REQ = 8001;
		   /**
		    * 8003	C->S	登出请求
		    */
		   public static final int OUT_SYSTEM_REQ = 8003;
		   /**
		    * 8004	C->S	修改密码请求
		    */
		   public static final int UPDATE_PWD_REQ = 8004;
		   /**
		    * 8006	C->S	心跳请求
		    */
		   public static final int HEARTBEAT_REQ = 8006;
		   /**
		    * 8009	C->S	查询告警信息请求
		    */
		   public static final int SELECT_ALARM_REQ = 8009;
			/**
			 * 8012	C->S	查询设备状态请求
			 */
		   public static final int SELECT_DEVICE_STATE_REQ = 8012;
		/**
		 * 8014	C->S	发送主机指令请求
		 */
		   public static final int SEND_DEVICE_REQ = 8014;
		
		   
	   }
	   /**
	    * 响应消息头部命令
	    * @author tiansl
	    *
	    */
	   public static final class headCmd_rsp{
		   /**
		    * 8002	S->C	登录响应
		    */
		   public static final int LOGIN_RSP = 8002;
		   /**
		    * 8005	S->C	修改密码响应
		    */
		   public static final int UPDATE_PWD_RSP = 8005;
		   /**
		    * 8007	S->C	心跳响应
		    */
		   public static final int HEARTBEAT_RSP = 8007;
		   /**
		    * 8010	S->C	查询告警信息响应
		    */
		   public static final int SELECT_ALARM_RSP = 8010;
		   /**
		    * 8013	S->C	查询设备状态响应
		    */
		   public static final int SELECT_DEVICE_STATE_RSP = 8013;
		   /**
		    * 8015	S->C	发送主机指令响应
		    */
		   public static final int SEND_DEVICE_RSP = 8015;
	   }
	   /**
	    * 通知消息头部命令
	    * @author tiansl
	    *
	    */
	   public static final class headCmd_inform{
		   
		   /**
		    * 告警通知
		    */
		   public static final int ALARM_INFORM = 8008;
		   /**
		    *8011	S->C	设备状态更新通知
		    */
		   public static final int DEVICE_STATE_UPDATE_INFORM = 8011;
		   
	   }
	   /**
	    * 公共的一些数据
	    * @author tiansl
	    *
	    */
	   public static final class headCmd_commData{
		   
		
		   /**
		    * 命令版本
		    */
		   public static final int CMDVERSION = 1;
		   
	   }
	   
	   
	   
	   
}
